home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_olv_temple_trees.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  90 lines

  1. # Jones 3D Cog Script
  2. #
  3. # olv_temple_trees.cog
  4. #
  5. # [DS]
  6. #
  7. # (C) 1999 LucasArts Entertainment Company LLC. All Rights Reserved
  8. #
  9. # ==============================================================================
  10.  
  11. symbols
  12.  
  13.     message    startup
  14.     message    entered
  15.  
  16.     thing        tree0
  17.     thing        tree1
  18.     thing        tree2
  19.     thing        tree3
  20.     thing        tree4
  21.     thing        tree5
  22.     thing        tree6
  23.     thing        tree7
  24.     thing        tree8
  25.     thing        tree9
  26.     thing        tree10
  27.     thing        tree11
  28.     thing        tree12
  29.     thing        tree13
  30.     thing        tree14
  31.     thing        tree15
  32.     thing        tree16
  33.     thing        tree17
  34.     thing        tree18
  35.     thing        tree19
  36.     thing        tree20
  37.     thing        tree21
  38.     thing        tree22
  39.     thing        tree23
  40.     thing        tree24
  41.     thing        tree25
  42.  
  43.     sector    trees_off
  44.     sector    trees_on
  45.     surface    drawface
  46.     thing        player            local
  47.     int        num=0                local
  48. end
  49.  
  50. #-------------------------------------------------------------------------------
  51.  
  52. code
  53.  
  54. startup:
  55.     player=GetLocalPlayerThing();
  56.  
  57.         for (num = 0; num<=25; num=num+1)
  58.         {
  59.         SetThingFlags(tree0[num], 0x80000);
  60.         }
  61.  
  62.     return;
  63.  
  64. entered:
  65.     if(GetSenderRef() == trees_on)
  66.     {
  67.         for (num = 0; num<=25; num=num+1)
  68.         {
  69.         SetAdjoinFlags(drawface, 0x1);
  70.         ClearSurfaceFlags(drawface, 0x200);
  71.         SetFaceGeoMode(drawface, 0);
  72.         ClearThingFlags(tree0[num], 0x80000);
  73.         }
  74.     return;
  75.     }
  76.     if(GetSenderRef() == trees_off)
  77.     {
  78.         for (num = 0; num<=25; num=num+1)
  79.         {
  80.         ClearAdjoinFlags(drawface, 0x1);
  81.         SetSurfaceFlags(drawface, 0x200);
  82.         SetFaceGeoMode(drawface, 4);
  83.         SetThingFlags(tree0[num], 0x80000);
  84.         }
  85.     return;
  86.     }
  87.     return;
  88. end
  89.  
  90.